import request from "../utils/request";

/**
 * 登录
 *
 * @param data 登录信息
 * @returns 校验结果
 */
export function login(data) {
  return request({
    url: "/api/login",
    method: "post",
    data: data,
  });
}

/**
 * 获取验证码
 */
export function getCaptcha() {
  return request({
    url: "/api/login/captcha",
    method: "get",
  });
}
